package com.zch.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.ChatViewMapper;
import com.zch.dao.model.ChatView;
import com.zch.dao.model.ChatViewExample;

@Service
public class ChatViewService {
	@Autowired
	private ChatViewMapper chatViewMapper;

	public int countByExample(ChatViewExample example) {
		return this.chatViewMapper.countByExample(example);
	}

	public ChatView selectByPrimaryKey(String id) {
		return this.chatViewMapper.selectByPrimaryKey(id);
	}

	public List<ChatView> selectByExample(ChatViewExample example) {
		return this.chatViewMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.chatViewMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(ChatView record) {
		return this.chatViewMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(ChatView record) {
		return this.chatViewMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ChatViewExample example) {
		return this.chatViewMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(ChatView record, ChatViewExample example) {
		return this.chatViewMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(ChatView record, ChatViewExample example) {
		return this.chatViewMapper.updateByExample(record, example);
	}

	public int insert(ChatView record) {
		return this.chatViewMapper.insert(record);
	}

	public int insertSelective(ChatView record) {
		return this.chatViewMapper.insertSelective(record);
	}

}
